<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:if="${param.error}">
<p style="text-align: center" class="text-danger">登录失败，账号或密码错误!</p>
</div>
<div th:if="${result}">
    <p style="text-align: center" class="text-success" th:text="${result}"></p>
</div>
<form th:action="@{/login}" method="post">
    <input type="text" name="username" placeholder="请输入账号"/>
    <input type="password" name="password" placeholder="请输入密码"/>
    <input type="submit" value="提交">
</form>
</body>
</html>